package com.ruoyi.project.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 安全风险记录对象 safety_hazard_record
 *
 * @author ruoyi
 * @date 2020-10-07
 */
public class SafetyHazardRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    private Integer id;

    /**
     * 学校标识
     */
    private Long collegeId;

    /**
     * 学校代码
     */
    private String collegeCode;

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    private String collegeName;

    /**
     * 发起会员标识
     */
    @Excel(name = "发起会员标识")
    private Long creatorId;

    /**
     * 发起学生标识
     */
    private Long studentId;

    /**
     * 发起学生姓名
     */
    @Excel(name = "发起学生姓名")
    private String studentName;

    /**
     * 发生位置
     */
    @Excel(name = "发生位置")
    private String location;

    /**
     * 图集
     */
    @Excel(name = "图集")
    private String photos;

    /**
     * 申请说明
     */
    @Excel(name = "申请说明")
    private String content;

    /**
     * 处理说明
     */
    @Excel(name = "处理说明")
    private String dealContent;

    /**
     * 处理人会员标识
     */
    @Excel(name = "处理人会员标识")
    private Long handlerId;

    /**
     * 处理人职工标识
     */
    private Long collegeStaffId;

    /**
     * 处理职工姓名
     */
    @Excel(name = "处理职工姓名")
    private String collegeStaffName;

    /**
     * 发起时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发起时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDt;

    /**
     * 处理时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dealDt;

    /**
     * 0:未处理，1：已处理
     */
    private Integer state;


    private String address;//隐患地点

    private String name;//隐患名称

    private String phone;


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setCollegeId(Long collegeId) {
        this.collegeId = collegeId;
    }

    public Long getCollegeId() {
        return collegeId;
    }

    public void setCollegeCode(String collegeCode) {
        this.collegeCode = collegeCode;
    }

    public String getCollegeCode() {
        return collegeCode;
    }

    public void setCollegeName(String collegeName) {
        this.collegeName = collegeName;
    }

    public String getCollegeName() {
        return collegeName;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setPhotos(String photos) {
        this.photos = photos;
    }

    public String getPhotos() {
        return photos;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setDealContent(String dealContent) {
        this.dealContent = dealContent;
    }

    public String getDealContent() {
        return dealContent;
    }

    public void setHandlerId(Long handlerId) {
        this.handlerId = handlerId;
    }

    public Long getHandlerId() {
        return handlerId;
    }

    public void setCollegeStaffId(Long collegeStaffId) {
        this.collegeStaffId = collegeStaffId;
    }

    public Long getCollegeStaffId() {
        return collegeStaffId;
    }

    public void setCollegeStaffName(String collegeStaffName) {
        this.collegeStaffName = collegeStaffName;
    }

    public String getCollegeStaffName() {
        return collegeStaffName;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setDealDt(Date dealDt) {
        this.dealDt = dealDt;
    }

    public Date getDealDt() {
        return dealDt;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("collegeId", getCollegeId())
                .append("collegeCode", getCollegeCode())
                .append("collegeName", getCollegeName())
                .append("creatorId", getCreatorId())
                .append("studentId", getStudentId())
                .append("studentName", getStudentName())
                .append("location", getLocation())
                .append("photos", getPhotos())
                .append("content", getContent())
                .append("dealContent", getDealContent())
                .append("handlerId", getHandlerId())
                .append("collegeStaffId", getCollegeStaffId())
                .append("collegeStaffName", getCollegeStaffName())
                .append("createDt", getCreateDt())
                .append("name", getName())
                .append("state", getState())
                .append("address", getAddress())
                .append("dealDt", getDealDt())
                .toString();
    }
}
